Skip to content

Fix Silabs HAL: also send commands to group bindings - #437

Merged
romasku merged 2 commits into
romasku:mainfrom
eakorolev:fix-silabs-multicast-bindings
Jul 25, 2026
Merged

Fix Silabs HAL: also send commands to group bindings#437
romasku merged 2 commits into
romasku:mainfrom
eakorolev:fix-silabs-multicast-bindings

Conversation

@eakorolev

@eakorolev eakorolev commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Discovered on Moes ZT-B-EU2 (TS0042) that buttons bound to a Zigbee group emit nothing on press, while unicast bindings work fine.

Turns out hal_zigbee_send_cmd_to_bindings() only calls sl_zigbee_af_send_command_unicast_to_bindings() — group entries have binding.type == SL_ZIGBEE_MULTICAST_BINDING and get filtered out by the unicast walk. The SiLabs framework itself handles this by calling both _unicast_to_bindings() and _multicast_to_bindings() back-to-back after a single fill_external_buffer (see reporting.c:367-381) — mirrored here.

603920460-a8c8f742-179f-47c5-a8e4-45773f1242bc 603921718-dd712d67-f677-4730-a74f-12ec850142b9 603921850-42794ad0-4352-47fe-8d51-771a7de4f961

@eakorolev

Copy link
Copy Markdown
Contributor Author

@romasku @andrei-lazarov should I update firmware version right now, or CI will do it after merge?

@andrei-lazarov

andrei-lazarov commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator

This looks like a big omission, how hasn't anyone reported yet? 😯 Thanks for fixing

Not sure what to do while romasku is inactive.. I don't want to update source code and release without him

Also I've removed the image metadata (location) for your privacy...
(GitHub uploads in original -> you should do some compression before-hand)

@eakorolev

eakorolev commented Jun 6, 2026

Copy link
Copy Markdown
Contributor Author

I'm just playing around with a few devices and trying to make my smart home work exactly the way I want. Native Zigbee bindings are always better than integrations through HA, so I'm using them everywhere it's possible =)

A big update with support for a separate long-press endpoint is almost here, but one of my (battery) devices suddenly dropped off the network, so I'm doing some field testing before publishing the PR.

Thanks for the metadata, I wasn't worried about it.

@ohmstance

Copy link
Copy Markdown
Contributor

Hey I built your PR and binding to group works now. Thank you!

eakorolev added a commit to eakorolev/tuya-zigbee-switch that referenced this pull request Jun 8, 2026
@Haydend Haydend mentioned this pull request Jul 4, 2026
eakorolev added a commit to eakorolev/tuya-zigbee-switch that referenced this pull request Jul 19, 2026
@romasku

romasku commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Great catch, thank you!

@romasku
romasku merged commit 0c8bc30 into romasku:main Jul 25, 2026
2 checks passed
@eakorolev
eakorolev deleted the fix-silabs-multicast-bindings branch July 25, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants